package com.htdata.iiot.api.tsdb.pojo;

import java.util.HashMap;
import java.util.Map;

public class DeviceStatusData {
    private long ts;
    private Map<String, String> tags = new HashMap<String, String>();
    private String did;
    private long value;

    public long getTs() {
        return ts;
    }

    public void setTs(long ts) {
        this.ts = ts;
    }

    public Map<String, String> getTags() {
        return tags;
    }

    public void setTags(Map<String, String> tags) {
        this.tags = tags;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }

    public void addTag(String tagK, String TagV) {
        this.tags.put(tagK, TagV);
    }

    @Override
    public String toString() {
        return "DeviceStatusData{" +
                "ts=" + ts +
                ", tags=" + tags +
                ", did='" + did + '\'' +
                ", value=" + value +
                '}';
    }
}
